package org.liubility.server.usersys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: Jdragon
 * @email: 1061917196@qq.com
 * @Date: 2020.09.04 16:12
 * @Description:
 */
@Data
@TableName("base_power")
public class Power extends Model<Power> {
    @TableId(type = IdType.AUTO)
    private int id;

    private int apiPid;

    private String apiName;

    private String apiUrl;

    private String apiMethod;

    private String powerDescribe;

    @Override
    protected Serializable pkVal(){
        return this.id;
    }
}
